import request from '@/utils/request'

export function create${modelNameUpperCamel}(data) {
    return request({
        url:'${baseRequestMapping}/create',
        method:'post',
        data:data
    })
}

export function delete${modelNameUpperCamel}ById(id) {
    return request({
        url:'${baseRequestMapping}/delete/'+id,
        method:'post',
    })
}

export function batchDelete${modelNameUpperCamel}(data) {
    return request({
        url:'${baseRequestMapping}/batchDelete
    method:'post',
    })
}

export function update${modelNameUpperCamel}(id,data) {
    return request({
    url:'${baseRequestMapping}/update/'+id,
        method:'post',
        data:data
    })
}

export function fetch${modelNameUpperCamel}List(params) {
    return request({
        url:'${baseRequestMapping}/list',
        method:'get',
        params:params
    })
}

export function fetch${modelNameUpperCamel}ById(id) {
    return request({
        url:'${baseRequestMapping}/list/'+id,
        method:'get',
    })
}







